package com.ess.project.examine.grade.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ess.project.examine.grade.domain.ExamineGradeEntity;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Date: Created in 2:56 下午 2021/3/6
 * @Author: daihui
 * @Modified By:
 */
public interface IGradeService extends IService<ExamineGradeEntity> {

    void export(String personnelCategory, String examTime, HttpServletResponse response);

    List<ExamineGradeEntity> selectGradeList(ExamineGradeEntity grade);

    List<ExamineGradeEntity> selectExamineTimeList();

    int deleteGradeByIds(String ids);

    ExamineGradeEntity selectRecordById(Integer gradeId);

    int updateGrade(ExamineGradeEntity grade);

    /**
     * 根据人员姓名获取人员成绩并按时间正序排序
     * @param examPersonnel 人员姓名
     * @return
     * @author qlq
     * 2021-04-12
     */
    Map<String,Object> getGradesByPersonnel(String examPersonnel,String examTimePar);

    /**
     * 各类人员成绩对比
     * @param examTimePar 考核时间
     * @return
     * @author qlq
     * 2021-04-12
     */
    Map<String,Object> getChartsDataForGlrycjdb(String examTimePar);

    /**
     * 整体成绩对比
     * @return
     * @author qlq
     * 2021-04-12
     */
    Map<String,Object> getChartsDataForZtcjdb();

    /**
     * 获取某一类别下的人员列表
     * @return
     * @author qlq
     * 2021-04-13
     */
    List<ExamineGradeEntity> getAllPerson(String personnelCategory);

    /**
     * 获取某一类别下的人员列表
     * @return
     * @author qlq
     * 2021-04-13
     */
    Map<String,Object> getDkcjdb(String dkcjdbPersonnelCategory, String[] dkcjdbPersonName, String khkm);

}
